package cn.bob.org.service;

import cn.bob.basic.utils.PageList;
import cn.bob.org.domain.Writer;
import cn.bob.org.query.WriterQuery;

import java.util.List;

public interface WriterService {
    // 查询全部
    List<Writer> findAllWriter();

    // 查询单条
    Writer findWriterById(Long id);

    // 删除
    void deleteWriter(Long id);

    // 添加
    void addWriter(Writer writer);

    // 修改
    void updateWriter(Writer writer);

    // 分页查询
    PageList<Writer> queryByPage(WriterQuery query);
}
